#include "projectile.h"

Projectile::Projectile(World *world, int speed, int size, Ogre::Real angle){
    Ogre::SceneManager *scene = world->getSceneManager();
    m_node = scene->getRootSceneNode()->createChildSceneNode();
    m_world = world;
    m_speed = speed;
    m_size = size;
    m_angle = angle;

    m_radians = m_angle * Ogre::Math::PI/ 180;
    m_x = sin(m_radians) * m_speed;
    m_z = cos(m_radians) * m_speed;
}

void Projectile::setPosition(Ogre::Vector3 pos){};

void Projectile::move(float time){};

void Projectile::colide(AI *object){};

void Projectile::destroy(){};
